from django.conf.urls.defaults import *

from komuna.frontend.models import News, Project

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()


urlpatterns = patterns('',
    (r'^admin/(.*)', admin.site.root),
	(r'^index', 'komuna.frontend.views.index'),
	(r'^projectOverview', 'komuna.frontend.views.projectOverview'),
	(r'^projectDetails', 'komuna.frontend.views.projectDetails'),
	(r'^search', 'komuna.frontend.views.search'),
	(r'^newProject', 'komuna.frontend.views.newProject'),
	(r'^stuff/(?P<path>.*)$', 'django.views.static.serve',	{'document_root': '/home/marko/work/faks/komuna/komuna/stuff'}),
	(r'^login', 'django.contrib.auth.views.login', {'template_name': 'login.html'}),
	(r'^logout', 'django.contrib.auth.views.logout', {'template_name': 'logout.html'}),
)
